package Ex5th;

public class YouthArt extends Human{
    private String magnumOpus;
    private String dream;

    public YouthArt(String name, int age, int gender, String school, String magnumOpus, String dream) {
        super(name, age, gender, school);
        this.magnumOpus = magnumOpus;
        this.dream = dream;
    }
    public void intro(){
        super.intro();
        System.out.println("\t代表作：" + magnumOpus);
        System.out.println("\t梦想：" + dream);
    }
}
